package com.freecloud.common;

import cn.hutool.core.io.FileUtil;

import java.io.BufferedOutputStream;

/**
 * @Author: maomao
 * @Date: 2019-11-22 11:57
 */
public class FileUtils {


    public static void outFile(byte[] data,String path){
        try(BufferedOutputStream outputStream = FileUtil.getOutputStream(path)) {
            outputStream.write(data);
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
